const routes = [
  {
    path: "/",
    name: "main-home",
    component: () => import("@/views/home/index.vue"),
    meta: {
      title: "首页",
    },
  },
  {
    path: "/sub-app-1/:subpath(.*)*",
    name: "sub-app-1",
    meta: {
      title: "展示子应用1",
    },
    component: () => import("@/views/subApp1/index.vue"),
  },
  {
    path: "/sub-app-2/:subpath(.*)*",
    name: "sub-app-2",
    meta: {
      title: "展示子应用2",
    },
    component: () => import("@/views/subApp2/index.vue"),
  },
  {
    path: "/about",
    name: "about",
    component: () => import("@/views/about/index.vue"),
    meta: {
      title: "关于",
    },
  },
];

export default routes;
